package bancosys.tec.persist.uniquevalue.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import jmine.tec.persist.annotation.Alias;
import bancosys.tec.persist.bussobj.PersistableBusinessObject;
import bancosys.tec.persist.uniquevalue.annotation.UniqueGeneratedValue;

/**
 * @author lundberg
 */
@Entity
@Table(name = "ENTITY_W_UGV")
@Alias("ENTUGV")
@SequenceGenerator(name = "SEQ_ENTUGV", sequenceName = "SEQ_ENTUGV")
public class EntityWithUniqueValues extends PersistableBusinessObject {
    private Long id;

    private Long ugv1;

    private Long ugv2;

    private Long ugv3;

    private String mnemonico;

    /**
     * @return the id
     */
    @Id
    @Column(name = "COD_ENTUGV")
    @GeneratedValue(generator = "SEQ_ENTUGV")
    public Long getId() {
        return this.id;
    }

    /**
     * @return the seq1
     */
    @Column(name = "UGV1", nullable = false, updatable = false)
    public Long getUgv1() {
        return this.ugv1;
    }

    /**
     * @return the seq2
     */
    @Column(name = "UGV2", nullable = false, updatable = false)
    public Long getUgv2() {
        return this.ugv2;
    }

    /**
     * @return the seq3
     */
    @Column(name = "UGV3", nullable = false, updatable = false)
    public Long getUgv3() {
        return this.ugv3;
    }

    /**
     * @return the mnemonico
     */
    @Column(name = "MNEMONICO")
    public String getMnemonico() {
        return this.mnemonico;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param seq1 the seq1 to set
     */
    @UniqueGeneratedValue("UVR1")
    public void setUgv1(Long seq1) {
        this.ugv1 = seq1;
    }

    /**
     * @param seq2 the seq2 to set
     */
    @UniqueGeneratedValue("UVR2")
    public void setUgv2(Long seq2) {
        this.ugv2 = seq2;
    }

    /**
     * @param seq3 the seq3 to set
     */
    @UniqueGeneratedValue("UVR3")
    public void setUgv3(Long seq3) {
        this.ugv3 = seq3;
    }

    /**
     * @param mnemonico the mnemonico to set
     */
    public void setMnemonico(String mnemonico) {
        this.mnemonico = mnemonico;
    }

}
